<!--{template admin/header_tpl}-->

<div class="mainarea">
	<div class="maininner">
		<div class="bdrcontent">
			<div class="title"><h3>{$website[name]}</h3></div>
			<p>抓取数据源：{$website[title]}</p>
			<p>地址：<a href="{$website[url]}">{$website[url]}</a></p>
		</div>
		<br />
<!--加载数据-->
		<form action="<!--{eval echo base_url()}-->admin/admin_fetch_activity/uponindexs/{$website[fromid]}" method="post" accept-charset="utf-8">


			<div class="bdrcontent">
				<table class="formtable" cellspacing="5" cellpadding="5">
						<th style="width:2em;">id</th>
						<th>状态</th>
						<th style="width:300px;">活动</th>
						<th>标题</th>
						<th>抓取时间</th>
						<th>操作</th>
						
						<!--{loop $activitys $key $activity}-->
						<tr>
							<td>{$activity[aid]}
								<!--{if $activity[status] != 1}-->
								<input type="checkbox" name="ids[]" value="{$activity[aid]}" id="" value="{$activity[aid]}">
								<!--{/if}-->
							</td>
							<td>{$activity[ison]}</td>
							<td>
								 <a href="{$activity[url]}" target="_blank"><img src="{$activity[imageurl]}" width="300" height="100"></a>
							</td>
							<td>{$activity['title']}</td>
							<td><!--{date('Y-m-d H:i', $activity['dateline'])}--></td>

							<td><a href="<!--{eval echo base_url()}-->admin/admin_fetch_activity/uponindex/{$website[fromid]}/{$activity['aid']}">上架</a> | <a href="<!--{eval echo base_url()}-->admin/admin_fetch_activity/goods/{$website[fromid]}/{$activity['aid']}">产品列表</a></td>
						<tr>
						<!--{/loop}-->
					</tr>
				</table>
			</div>
		<!--分页表单和删除按钮-->
			<div class="footactions">
				<input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')">全选
				<input type="submit" name="batchsubmit" value="批量上架" onclick="return confirm('确认上架？');" class="submit">
				<div class="pages">{$multi}</div>
			</div>
		</form>
	</div>
</div>
<div class="side">
	<!--{template admin/side}-->
</div>

<!--{template admin/footer_tpl}-->